#ifndef __IIC_SOFTSIMU_H
#define __IIC_SOFTSIMU_H
#ifdef __cplusplus
  extern "C" {
#endif


#include "main.h"


typedef struct
{
  GPIO_TypeDef* SCL_Port;
  uint16_t	  	SCL_Pin;
  GPIO_TypeDef* SDA_Port;
  uint16_t	  	SDA_Pin;
  uint32_t  		Delaycnt;
}Soft_IIC;


void IIC_WriteByte(const Soft_IIC* hSoftIIC, uint8_t  data);
void IIC_ReadByte (const Soft_IIC* hSoftIIC, uint8_t *data);


#ifdef __cplusplus
  }
#endif
#endif /* __IIC_SOFTSIMU_H */
